//
//  stack.c
//  Algorithm
//
//  Created by ViliWen on 1/18/16.
//  Copyright © 2016 wlf92. All rights reserved.
//

#include <stdlib.h>

#include "list.h"
#include "stack.h"

int stack_push(Stack *stack, const void *data)
{
    return list_ins_next(stack, NULL, data);
}

int stack_pop(Stack *stack, void **data)
{
    return list_rem_next(stack, NULL, data);
}

